package io;

import java.io.File;
import java.io.IOException;

public class TestFile {
    public static void main(String[] args) throws IOException {
        File file = new File("d:/testFile.txt");
        boolean newFile = file.createNewFile();
        System.out.println(newFile);
        String name = file.getName();
        String path = file.getPath();
        System.out.println(name + "\n" + path);
        boolean exists = file.exists();
        boolean directory = file.isDirectory();
        System.out.println(exists + "\n" + directory);
    }

}
